package com.sw.study.xml;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class XMLConsumerMain {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext xmlApplicationContext=new ClassPathXmlApplicationContext("classpath:/dubbo-consumer.xml");
        xmlApplicationContext.start();
        IHelloService helloService=xmlApplicationContext.getBean(IHelloService.class);
        String s = helloService.sayHello(" i am very tired!!");
        System.out.println(s);
    }
}
